<?php
/*
 * Copyright (c) 2022.  Liuhongbin All rights reserved.
 * @domain http://dkyx.cc
 * @author liuhongbin <514660094@qq.com>
 */


namespace app\common\model\douyin;


use app\common\model\addon\Addons;
use app\common\model\AdminBaseModel;

class DouyinUser  extends AdminBaseModel
{
    /**
     * 模型名称
     * @var string
     */
    protected $name = 'douyin_user';

    /**
     * 字段类型或者格式转换
     * @var array
     */
    protected $type = [

    ];


    protected $hidden =[
//      'access_token',
//      'refresh_token'
    ];
    public function fAddon()
    {
        return $this->hasOne(Addons::class, 'name', 'first_addon');
    }

    public function lAddon()
    {
        return $this->hasOne(Addons::class, 'name', 'last_addon');
    }
}
